<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>HmacUtils (Apache Commons Codec 1.10 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="HmacUtils (Apache Commons Codec 1.10 API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/HmacUtils.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/codec/digest/HmacAlgorithms.html" title="enum in org.apache.commons.codec.digest"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/codec/digest/Md5Crypt.html" title="class in org.apache.commons.codec.digest"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/codec/digest/HmacUtils.html" target="_top">Frames</a></li>
<li><a href="HmacUtils.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.commons.codec.digest</div>
<h2 title="Class HmacUtils" class="title">Class HmacUtils</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.commons.codec.digest.HmacUtils</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public final class <span class="strong">HmacUtils</span>
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Simplifies common <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a> tasks. This class is immutable and thread-safe.


 <p>
 <strong>Note: Not all JCE implementations supports all algorithms. If not supported, an IllegalArgumentException is
 thrown.</strong>
 </p></div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>1.10</dd>
<dt><span class="strong">Version:</span></dt>
  <dd>$Id: HmacUtils.java 1634411 2014-10-27 00:35:43Z ggregory $</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#HmacUtils()">HmacUtils</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#getHmacMd5(byte[])">getHmacMd5</a></strong>(byte[]&nbsp;key)</code>
<div class="block">Returns an initialized <code>Mac</code> for the HmacMD5 algorithm.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#getHmacSha1(byte[])">getHmacSha1</a></strong>(byte[]&nbsp;key)</code>
<div class="block">Returns an initialized <code>Mac</code> for the HmacSHA1 algorithm.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#getHmacSha256(byte[])">getHmacSha256</a></strong>(byte[]&nbsp;key)</code>
<div class="block">Returns an initialized <code>Mac</code> for the HmacSHA256 algorithm.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#getHmacSha384(byte[])">getHmacSha384</a></strong>(byte[]&nbsp;key)</code>
<div class="block">Returns an initialized <code>Mac</code> for the HmacSHA384 algorithm.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#getHmacSha512(byte[])">getHmacSha512</a></strong>(byte[]&nbsp;key)</code>
<div class="block">Returns an initialized <code>Mac</code> for the HmacSHA512 algorithm.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#getInitializedMac(org.apache.commons.codec.digest.HmacAlgorithms,%20byte[])">getInitializedMac</a></strong>(<a href="../../../../../org/apache/commons/codec/digest/HmacAlgorithms.html" title="enum in org.apache.commons.codec.digest">HmacAlgorithms</a>&nbsp;algorithm,
                 byte[]&nbsp;key)</code>
<div class="block">Returns an initialized <code>Mac</code> for the given <code>algorithm</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#getInitializedMac(java.lang.String,%20byte[])">getInitializedMac</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;algorithm,
                 byte[]&nbsp;key)</code>
<div class="block">Returns an initialized <code>Mac</code> for the given <code>algorithm</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacMd5(byte[],%20byte[])">hmacMd5</a></strong>(byte[]&nbsp;key,
       byte[]&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacMD5 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacMd5(byte[],%20java.io.InputStream)">hmacMd5</a></strong>(byte[]&nbsp;key,
       <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacMD5 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacMd5(java.lang.String,%20java.lang.String)">hmacMd5</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
       <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacMD5 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacMd5Hex(byte[],%20byte[])">hmacMd5Hex</a></strong>(byte[]&nbsp;key,
          byte[]&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacMD5 Message Authentication Code (MAC) as a hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacMd5Hex(byte[],%20java.io.InputStream)">hmacMd5Hex</a></strong>(byte[]&nbsp;key,
          <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacMD5 Message Authentication Code (MAC) as a hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacMd5Hex(java.lang.String,%20java.lang.String)">hmacMd5Hex</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
          <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacMD5 Message Authentication Code (MAC) as a hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha1(byte[],%20byte[])">hmacSha1</a></strong>(byte[]&nbsp;key,
        byte[]&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA1 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha1(byte[],%20java.io.InputStream)">hmacSha1</a></strong>(byte[]&nbsp;key,
        <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA1 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha1(java.lang.String,%20java.lang.String)">hmacSha1</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
        <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA1 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha1Hex(byte[],%20byte[])">hmacSha1Hex</a></strong>(byte[]&nbsp;key,
           byte[]&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA1 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha1Hex(byte[],%20java.io.InputStream)">hmacSha1Hex</a></strong>(byte[]&nbsp;key,
           <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA1 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha1Hex(java.lang.String,%20java.lang.String)">hmacSha1Hex</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
           <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA1 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha256(byte[],%20byte[])">hmacSha256</a></strong>(byte[]&nbsp;key,
          byte[]&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA256 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha256(byte[],%20java.io.InputStream)">hmacSha256</a></strong>(byte[]&nbsp;key,
          <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA256 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha256(java.lang.String,%20java.lang.String)">hmacSha256</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
          <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA256 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha256Hex(byte[],%20byte[])">hmacSha256Hex</a></strong>(byte[]&nbsp;key,
             byte[]&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA256 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha256Hex(byte[],%20java.io.InputStream)">hmacSha256Hex</a></strong>(byte[]&nbsp;key,
             <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA256 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha256Hex(java.lang.String,%20java.lang.String)">hmacSha256Hex</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
             <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA256 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha384(byte[],%20byte[])">hmacSha384</a></strong>(byte[]&nbsp;key,
          byte[]&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA384 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha384(byte[],%20java.io.InputStream)">hmacSha384</a></strong>(byte[]&nbsp;key,
          <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA384 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha384(java.lang.String,%20java.lang.String)">hmacSha384</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
          <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA384 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha384Hex(byte[],%20byte[])">hmacSha384Hex</a></strong>(byte[]&nbsp;key,
             byte[]&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA384 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha384Hex(byte[],%20java.io.InputStream)">hmacSha384Hex</a></strong>(byte[]&nbsp;key,
             <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA384 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha384Hex(java.lang.String,%20java.lang.String)">hmacSha384Hex</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
             <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA384 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha512(byte[],%20byte[])">hmacSha512</a></strong>(byte[]&nbsp;key,
          byte[]&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA512 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha512(byte[],%20java.io.InputStream)">hmacSha512</a></strong>(byte[]&nbsp;key,
          <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA512 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha512(java.lang.String,%20java.lang.String)">hmacSha512</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
          <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA512 Message Authentication Code (MAC) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha512Hex(byte[],%20byte[])">hmacSha512Hex</a></strong>(byte[]&nbsp;key,
             byte[]&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA512 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha512Hex(byte[],%20java.io.InputStream)">hmacSha512Hex</a></strong>(byte[]&nbsp;key,
             <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA512 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#hmacSha512Hex(java.lang.String,%20java.lang.String)">hmacSha512Hex</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
             <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</code>
<div class="block">Returns a HmacSHA512 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#updateHmac(javax.crypto.Mac,%20byte[])">updateHmac</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;mac,
          byte[]&nbsp;valueToDigest)</code>
<div class="block">Updates the given <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#updateHmac(javax.crypto.Mac,%20java.io.InputStream)">updateHmac</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;mac,
          <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)</code>
<div class="block">Updates the given <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/codec/digest/HmacUtils.html#updateHmac(javax.crypto.Mac,%20java.lang.String)">updateHmac</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;mac,
          <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</code>
<div class="block">Updates the given <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a>.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="HmacUtils()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>HmacUtils</h4>
<pre>public&nbsp;HmacUtils()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getHmacMd5(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHmacMd5</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;getHmacMd5(byte[]&nbsp;key)</pre>
<div class="block">Returns an initialized <code>Mac</code> for the HmacMD5 algorithm.
 <p>
 Every implementation of the Java platform is required to support this standard Mac algorithm.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>A Mac instance initialized with the given key.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#getInstance(java.lang.String)" title="class or interface in javax.crypto"><code>Mac.getInstance(String)</code></a>, 
<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#init(java.security.Key)" title="class or interface in javax.crypto"><code>Mac.init(Key)</code></a></dd></dl>
</li>
</ul>
<a name="getHmacSha1(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHmacSha1</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;getHmacSha1(byte[]&nbsp;key)</pre>
<div class="block">Returns an initialized <code>Mac</code> for the HmacSHA1 algorithm.
 <p>
 Every implementation of the Java platform is required to support this standard Mac algorithm.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>A Mac instance initialized with the given key.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#getInstance(java.lang.String)" title="class or interface in javax.crypto"><code>Mac.getInstance(String)</code></a>, 
<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#init(java.security.Key)" title="class or interface in javax.crypto"><code>Mac.init(Key)</code></a></dd></dl>
</li>
</ul>
<a name="getHmacSha256(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHmacSha256</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;getHmacSha256(byte[]&nbsp;key)</pre>
<div class="block">Returns an initialized <code>Mac</code> for the HmacSHA256 algorithm.
 <p>
 Every implementation of the Java platform is required to support this standard Mac algorithm.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>A Mac instance initialized with the given key.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#getInstance(java.lang.String)" title="class or interface in javax.crypto"><code>Mac.getInstance(String)</code></a>, 
<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#init(java.security.Key)" title="class or interface in javax.crypto"><code>Mac.init(Key)</code></a></dd></dl>
</li>
</ul>
<a name="getHmacSha384(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHmacSha384</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;getHmacSha384(byte[]&nbsp;key)</pre>
<div class="block">Returns an initialized <code>Mac</code> for the HmacSHA384 algorithm.
 <p>
 Every implementation of the Java platform is <em>not</em> required to support this Mac algorithm.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>A Mac instance initialized with the given key.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#getInstance(java.lang.String)" title="class or interface in javax.crypto"><code>Mac.getInstance(String)</code></a>, 
<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#init(java.security.Key)" title="class or interface in javax.crypto"><code>Mac.init(Key)</code></a></dd></dl>
</li>
</ul>
<a name="getHmacSha512(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHmacSha512</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;getHmacSha512(byte[]&nbsp;key)</pre>
<div class="block">Returns an initialized <code>Mac</code> for the HmacSHA512 algorithm.
 <p>
 Every implementation of the Java platform is <em>not</em> required to support this Mac algorithm.
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>A Mac instance initialized with the given key.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#getInstance(java.lang.String)" title="class or interface in javax.crypto"><code>Mac.getInstance(String)</code></a>, 
<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#init(java.security.Key)" title="class or interface in javax.crypto"><code>Mac.init(Key)</code></a></dd></dl>
</li>
</ul>
<a name="getInitializedMac(org.apache.commons.codec.digest.HmacAlgorithms, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInitializedMac</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;getInitializedMac(<a href="../../../../../org/apache/commons/codec/digest/HmacAlgorithms.html" title="enum in org.apache.commons.codec.digest">HmacAlgorithms</a>&nbsp;algorithm,
                    byte[]&nbsp;key)</pre>
<div class="block">Returns an initialized <code>Mac</code> for the given <code>algorithm</code>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>algorithm</code> - the name of the algorithm requested. See <a href=
            "http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#AppA" >Appendix
            A in the Java Cryptography Architecture Reference Guide</a> for information about standard algorithm
            names.</dd><dd><code>key</code> - They key for the keyed digest (must not be null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>A Mac instance initialized with the given key.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#getInstance(java.lang.String)" title="class or interface in javax.crypto"><code>Mac.getInstance(String)</code></a>, 
<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#init(java.security.Key)" title="class or interface in javax.crypto"><code>Mac.init(Key)</code></a></dd></dl>
</li>
</ul>
<a name="getInitializedMac(java.lang.String, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInitializedMac</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;getInitializedMac(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;algorithm,
                    byte[]&nbsp;key)</pre>
<div class="block">Returns an initialized <code>Mac</code> for the given <code>algorithm</code>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>algorithm</code> - the name of the algorithm requested. See <a href=
            "http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#AppA" >Appendix
            A in the Java Cryptography Architecture Reference Guide</a> for information about standard algorithm
            names.</dd><dd><code>key</code> - They key for the keyed digest (must not be null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>A Mac instance initialized with the given key.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#getInstance(java.lang.String)" title="class or interface in javax.crypto"><code>Mac.getInstance(String)</code></a>, 
<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true#init(java.security.Key)" title="class or interface in javax.crypto"><code>Mac.init(Key)</code></a></dd></dl>
</li>
</ul>
<a name="hmacMd5(byte[], byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacMd5</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacMd5(byte[]&nbsp;key,
             byte[]&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacMD5 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacMD5 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacMd5(byte[], java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacMd5</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacMd5(byte[]&nbsp;key,
             <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)
                      throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a HmacMD5 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest
            <p>
            The InputStream must not be null and will not be closed
            </p></dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacMD5 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacMd5(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacMd5</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacMd5(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
             <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacMD5 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacMD5 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacMd5Hex(byte[], byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacMd5Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacMd5Hex(byte[]&nbsp;key,
                byte[]&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacMD5 Message Authentication Code (MAC) as a hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacMD5 MAC for the given key and value as a hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacMd5Hex(byte[], java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacMd5Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacMd5Hex(byte[]&nbsp;key,
                <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)
                         throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a HmacMD5 Message Authentication Code (MAC) as a hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest
            <p>
            The InputStream must not be null and will not be closed
            </p></dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacMD5 MAC for the given key and value as a hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacMd5Hex(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacMd5Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacMd5Hex(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
                <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacMD5 Message Authentication Code (MAC) as a hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacMD5 MAC for the given key and value as a hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha1(byte[], byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha1</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacSha1(byte[]&nbsp;key,
              byte[]&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA1 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA1 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha1(byte[], java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha1</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacSha1(byte[]&nbsp;key,
              <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)
                       throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a HmacSHA1 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest
            <p>
            The InputStream must not be null and will not be closed
            </p></dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA1 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha1(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha1</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacSha1(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
              <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA1 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA1 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha1Hex(byte[], byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha1Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacSha1Hex(byte[]&nbsp;key,
                 byte[]&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA1 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA1 MAC for the given key and value as hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha1Hex(byte[], java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha1Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacSha1Hex(byte[]&nbsp;key,
                 <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)
                          throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a HmacSHA1 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest
            <p>
            The InputStream must not be null and will not be closed
            </p></dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA1 MAC for the given key and value as hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha1Hex(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha1Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacSha1Hex(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
                 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA1 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA1 MAC for the given key and value as hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha256(byte[], byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha256</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacSha256(byte[]&nbsp;key,
                byte[]&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA256 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA256 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha256(byte[], java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha256</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacSha256(byte[]&nbsp;key,
                <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)
                         throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a HmacSHA256 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest
            <p>
            The InputStream must not be null and will not be closed
            </p></dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA256 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs.
s     * @throws IllegalArgumentException
             when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha256(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha256</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacSha256(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
                <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA256 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA256 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha256Hex(byte[], byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha256Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacSha256Hex(byte[]&nbsp;key,
                   byte[]&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA256 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA256 MAC for the given key and value as hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha256Hex(byte[], java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha256Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacSha256Hex(byte[]&nbsp;key,
                   <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)
                            throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a HmacSHA256 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest
            <p>
            The InputStream must not be null and will not be closed
            </p></dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA256 MAC for the given key and value as hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha256Hex(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha256Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacSha256Hex(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
                   <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA256 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA256 MAC for the given key and value as hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha384(byte[], byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha384</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacSha384(byte[]&nbsp;key,
                byte[]&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA384 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA384 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha384(byte[], java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha384</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacSha384(byte[]&nbsp;key,
                <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)
                         throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a HmacSHA384 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest
            <p>
            The InputStream must not be null and will not be closed
            </p></dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA384 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha384(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha384</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacSha384(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
                <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA384 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA384 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha384Hex(byte[], byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha384Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacSha384Hex(byte[]&nbsp;key,
                   byte[]&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA384 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA384 MAC for the given key and value as hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha384Hex(byte[], java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha384Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacSha384Hex(byte[]&nbsp;key,
                   <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)
                            throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a HmacSHA384 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest
            <p>
            The InputStream must not be null and will not be closed
            </p></dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA384 MAC for the given key and value as hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha384Hex(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha384Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacSha384Hex(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
                   <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA384 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA384 MAC for the given key and value as hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha512(byte[], byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha512</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacSha512(byte[]&nbsp;key,
                byte[]&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA512 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA512 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha512(byte[], java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha512</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacSha512(byte[]&nbsp;key,
                <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)
                         throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a HmacSHA512 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest
            <p>
            The InputStream must not be null and will not be closed
            </p></dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA512 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha512(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha512</h4>
<pre>public static&nbsp;byte[]&nbsp;hmacSha512(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
                <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA512 Message Authentication Code (MAC) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA512 MAC for the given key and value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha512Hex(byte[], byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha512Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacSha512Hex(byte[]&nbsp;key,
                   byte[]&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA512 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA512 MAC for the given key and value as hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha512Hex(byte[], java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha512Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacSha512Hex(byte[]&nbsp;key,
                   <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)
                            throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a HmacSHA512 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest
            <p>
            The InputStream must not be null and will not be closed
            </p></dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA512 MAC for the given key and value as hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="hmacSha512Hex(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hmacSha512Hex</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;hmacSha512Hex(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
                   <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</pre>
<div class="block">Returns a HmacSHA512 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - They key for the keyed digest (must not be null)</dd><dd><code>valueToDigest</code> - The value (data) which should to digest (maybe empty or null)</dd>
<dt><span class="strong">Returns:</span></dt><dd>HmacSHA512 MAC for the given key and value as hex string (lowercase)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - when a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/NoSuchAlgorithmException.html?is-external=true" title="class or interface in java.security"><code>NoSuchAlgorithmException</code></a> is caught or key is null or key is invalid.</dd></dl>
</li>
</ul>
<a name="updateHmac(javax.crypto.Mac, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>updateHmac</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;updateHmac(<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;mac,
             byte[]&nbsp;valueToDigest)</pre>
<div class="block">Updates the given <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a>. This generates a digest for valueToDigest and the key the Mac was initialized</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mac</code> - the initialized <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a> to update</dd><dd><code>valueToDigest</code> - the value to update the <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a> with (maybe null or empty)</dd>
<dt><span class="strong">Returns:</span></dt><dd>the updated <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - if the Mac was not initialized</dd><dt><span class="strong">Since:</span></dt>
  <dd>1.x</dd></dl>
</li>
</ul>
<a name="updateHmac(javax.crypto.Mac, java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>updateHmac</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;updateHmac(<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;mac,
             <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;valueToDigest)
                      throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Updates the given <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a>. This generates a digest for valueToDigest and the key the Mac was initialized</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mac</code> - the initialized <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a> to update</dd><dd><code>valueToDigest</code> - the value to update the <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a> with
            <p>
            The InputStream must not be null and will not be closed
            </p></dd>
<dt><span class="strong">Returns:</span></dt><dd>the updated <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - If the Mac was not initialized</dd><dt><span class="strong">Since:</span></dt>
  <dd>1.x</dd></dl>
</li>
</ul>
<a name="updateHmac(javax.crypto.Mac, java.lang.String)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>updateHmac</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;updateHmac(<a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto">Mac</a>&nbsp;mac,
             <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueToDigest)</pre>
<div class="block">Updates the given <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a>. This generates a digest for valueToDigest and the key the Mac was initialized</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mac</code> - the initialized <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a> to update</dd><dd><code>valueToDigest</code> - the value to update the <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a> with (maybe null or empty)</dd>
<dt><span class="strong">Returns:</span></dt><dd>the updated <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html?is-external=true" title="class or interface in javax.crypto"><code>Mac</code></a></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - if the Mac was not initialized</dd><dt><span class="strong">Since:</span></dt>
  <dd>1.x</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/HmacUtils.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/codec/digest/HmacAlgorithms.html" title="enum in org.apache.commons.codec.digest"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/codec/digest/Md5Crypt.html" title="class in org.apache.commons.codec.digest"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/codec/digest/HmacUtils.html" target="_top">Frames</a></li>
<li><a href="HmacUtils.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2002&#x2013;2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>
